package com.younion.vo;

import cpcns.component.common.base.BaseVO;
import cpcns.persister.converter.IDomainObject;
import cpcns.persister.service.CompositeID;

import java.util.Date;

import com.younion.util.DateUtil;


 
public class SendMsgVO extends BaseVO implements IDomainObject,Cloneable{

	/**  */
	private static final long serialVersionUID = -1L;

 
	private Integer id;

 
	private String title;

 
	private String msgType;

 
	private Date sendTime;

 
	private String scheduleType;

 
	private String status;

 
	private MsgTemplateVO template;

 
	private String content;

 
	private String users;
	
	private String applyStatus;
	
	private Date gtsendTime;
	private Date ltsendTime;
	
	private String gtsendTimeStr;
	private String ltsendTimeStr;
	
	private CustomerVO customer;
	
	private String mobile;
	
	private Integer memberCardId;
	private String memberName;
	
	private String schemeCode;

	/**
	 * 
	 */
	public SendMsgVO() {
	}

	/** 
	 * @return the id
	 */ 
	public Integer getId() {
		return id;
	}

	/** 
	 * @param id the id to set 
	 */ 
	public void setId(Integer id) {
		this.id = id;
	}

	/** 
	 * @return the title
	 */ 
	public String getTitle() {
		return title;
	}

	/** 
	 * @param title the title to set 
	 */ 
	public void setTitle(String title) {
		this.title = title;
	}

	/** 
	 * @return the msgType
	 */ 
	public String getMsgType() {
		return msgType;
	}

	/** 
	 * @param msgType the msgType to set 
	 */ 
	public void setMsgType(String msgType) {
		this.msgType = msgType;
	}

	/** 
	 * @return the sendTime
	 */ 
	public Date getSendTime() {
		return sendTime;
	}

	/** 
	 * @param sendTime the sendTime to set 
	 */ 
	public void setSendTime(Date sendTime) {
		this.sendTime = sendTime;
	}

	/** 
	 * @return the scheduleType
	 */ 
	public String getScheduleType() {
		return scheduleType;
	}

	/** 
	 * @param scheduleType the scheduleType to set 
	 */ 
	public void setScheduleType(String scheduleType) {
		this.scheduleType = scheduleType;
	}

	/** 
	 * @return the status
	 */ 

	/** 
	 * @return the templateId
	 */ 

	/** 
	 * @return the content
	 */ 
	public String getContent() {
		return content;
	}

	/** 
	 * @param content the content to set 
	 */ 
	public void setContent(String content) {
		this.content = content;
	}

	/** 
	 * @return the users
	 */ 
	public String getUsers() {
		return users;
	}

	/** 
	 * @param users the users to set 
	 */ 
	public void setUsers(String users) {
		this.users = users;
	}

	public CompositeID getCompositeID(){
		CompositeID _id = super.getCompositeID();
		_id.clear();
		if(id != null){
			_id.addKey("id", id);
		}
		return _id;
	}

	public String getStatus() {
		return status;
	}

	public void setStatus(String status) {
		this.status = status;
	}

	public String getApplyStatus() {
		return applyStatus;
	}

	public void setApplyStatus(String applyStatus) {
		this.applyStatus = applyStatus;
	}

	public MsgTemplateVO getTemplate() {
		return template;
	}

	public void setTemplate(MsgTemplateVO template) {
		this.template = template;
	}

	public Date getGtsendTime() {
		return gtsendTime;
	}

	public void setGtsendTime(Date gtsendTime) {
		this.gtsendTime = gtsendTime;
	}

	public Date getLtsendTime() {
		return ltsendTime;
	}

	public void setLtsendTime(Date ltsendTime) {
		this.ltsendTime = ltsendTime;
	}

	public String getGtsendTimeStr() {
		return DateUtil.toStrDateFromUtilDateByFormat(gtsendTime, DateUtil.DATE_TIME_FORMAT_YYYY_MM_DD_HH_MI_SS);
	}

	public void setGtsendTimeStr(String gtsendTimeStr) {
		this.gtsendTimeStr = gtsendTimeStr;
	}

	public String getLtsendTimeStr() {
		return DateUtil.toStrDateFromUtilDateByFormat(ltsendTime, DateUtil.DATE_TIME_FORMAT_YYYY_MM_DD_HH_MI_SS);
	}

	public void setLtsendTimeStr(String ltsendTimeStr) {
		this.ltsendTimeStr = ltsendTimeStr;
	}

	public CustomerVO getCustomer() {
		return customer;
	}

	public void setCustomer(CustomerVO customer) {
		this.customer = customer;
	}

	public String getMobile() {
		return mobile;
	}

	public void setMobile(String mobile) {
		this.mobile = mobile;
	}

	public Integer getMemberCardId() {
		return memberCardId;
	}

	public void setMemberCardId(Integer memberCardId) {
		this.memberCardId = memberCardId;
	}

	public String getMemberName() {
		return memberName;
	}

	public void setMemberName(String memberName) {
		this.memberName = memberName;
	}

	public String getSchemeCode() {
		return schemeCode;
	}

	public void setSchemeCode(String schemeCode) {
		this.schemeCode = schemeCode;
	}
}
